FROM mindcollapse/malware-multi-scan-scanner:latest

RUN apt-get update && apt-get install wget -y

ARG SOPHOS_URL=https://api-cloudstation-eu-central-1.prod.hydra.sophos.com/api/download/a9f5bc85ee950653ef0775ca1402120c/SophosInstall.sh
ENV SOPHOS_URL=$SOPHOS_URL

RUN wget -q $SOPHOS_URL -O /tmp/SophosInstall.sh && \
    chmod +x /tmp/SophosInstall.sh && \
    /tmp/SophosInstall.sh --automatic --acceptlicence || exit 0
    
ENV BackendType=Sophos

